/* /Layout/MainLayout.razor.rz.scp.css */
.topbar[b-hb7vqh38ge] {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 14, 20, 0.72);
    backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner[b-hb7vqh38ge] {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand[b-hb7vqh38ge] {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--text);
}

.brand-name[b-hb7vqh38ge] {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

    .brand-name span[b-hb7vqh38ge] {
        color: var(--accent);
    }

.brand-role[b-hb7vqh38ge] {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding-left: 10px;
    border-left: 1px solid var(--border);
}

.topnav[b-hb7vqh38ge] {
    display: flex;
    align-items: center;
    gap: 28px;
}

    /* Contact button: last item of the menu, on every page */
    .topnav .nav-cta[b-hb7vqh38ge] {
        display: inline-flex;
        align-items: center;
        padding: 8px 16px;
        border-radius: 10px;
        background: var(--accent);
        color: #0b0e14;
        font-weight: 600;
        transition: transform 0.12s ease, color 0.15s ease;
    }

        .topnav .cta-icon[b-hb7vqh38ge] {
            display: none;
        }

        .topnav .nav-cta:hover[b-hb7vqh38ge] {
            color: #0b0e14;
            transform: translateY(-2px);
        }

    .topnav[b-hb7vqh38ge]  a {
        color: var(--muted);
        font-size: 0.92rem;
        font-weight: 500;
        transition: color 0.15s ease;
    }

    .topnav[b-hb7vqh38ge]  a:hover {
        color: var(--text);
    }

    .topnav[b-hb7vqh38ge]  a.active {
        color: var(--text);
    }

        .topnav[b-hb7vqh38ge]  a.active::after {
            content: "";
            display: block;
            height: 2px;
            border-radius: 2px;
            background: var(--accent);
            margin-top: 3px;
        }

main[b-hb7vqh38ge] {
    display: block;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.site-footer[b-hb7vqh38ge] {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 24px 56px;
    border-top: 1px solid var(--border);
    margin-top: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-links[b-hb7vqh38ge] {
    display: flex;
    gap: 16px;
}

    .footer-links a[b-hb7vqh38ge] {
        display: inline-flex;
        color: var(--muted);
        transition: color 0.15s ease;
    }

        .footer-links a:hover[b-hb7vqh38ge] {
            color: var(--text);
        }

@media (max-width: 640px) {
    .brand-role[b-hb7vqh38ge] {
        display: none;
    }

    .topnav[b-hb7vqh38ge] {
        gap: 16px;
    }

        .topnav .nav-cta[b-hb7vqh38ge] {
            padding: 7px 12px;
        }

    .site-footer[b-hb7vqh38ge] {
        flex-direction: column;
        gap: 8px;
    }
}

/* Small phones: the contact button becomes just an envelope icon */
@media (max-width: 480px) {
    .topbar-inner[b-hb7vqh38ge] {
        padding: 0 16px;
    }

    .topnav[b-hb7vqh38ge] {
        gap: 14px;
    }

        .topnav[b-hb7vqh38ge]  a {
            font-size: 0.88rem;
        }

        .topnav .nav-cta[b-hb7vqh38ge] {
            padding: 7px 9px;
        }

        .topnav .cta-icon[b-hb7vqh38ge] {
            display: block;
        }

        .topnav .cta-text[b-hb7vqh38ge] {
            display: none;
        }
}
/* /Pages/About.razor.rz.scp.css */
/* ===== ABOUT ===== */
.about-grid[b-5zzniqp242] {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
}

.about-text p[b-5zzniqp242] {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.02rem;
}

    .about-text .about-lead[b-5zzniqp242] {
        color: var(--text);
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.5;
    }

    .about-text p + p[b-5zzniqp242] {
        margin-top: 18px;
    }

.about-side[b-5zzniqp242] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Figure as wide as the photo, so the caption centers under it */
.about-photo[b-5zzniqp242] {
    margin: 0;
    max-width: 360px;
}

    .about-photo img[b-5zzniqp242] {
        display: block;
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: var(--radius);
        border: 4px solid color-mix(in srgb, var(--accent) 65%, transparent);
    }

    .about-photo figcaption[b-5zzniqp242] {
        margin-top: 8px;
        text-align: center;
        color: var(--muted);
        font-size: 0.85rem;
    }

.about-facts[b-5zzniqp242] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .about-facts li[b-5zzniqp242] {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 16px 18px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        font-size: 0.98rem;
    }

    .about-facts .k[b-5zzniqp242] {
        color: var(--accent);
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-weight: 600;
    }

/* Resume card: under the facts, styled like them but clickable */
.about-resume[b-5zzniqp242] {
    margin-top: 36px;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border));
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.12s ease, border-color 0.15s ease;
}

    .about-resume:hover[b-5zzniqp242],
    .about-resume:focus-visible[b-5zzniqp242] {
        transform: translateY(-2px);
        border-color: var(--accent);
    }

    .about-resume svg[b-5zzniqp242] {
        color: var(--accent);
        flex-shrink: 0;
    }

.about-resume-text[b-5zzniqp242] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.98rem;
}

    .about-resume-text .k[b-5zzniqp242] {
        color: var(--accent);
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-weight: 600;
    }

.about-resume-cta[b-5zzniqp242] {
    margin-left: auto;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--accent);
    color: #0b0e14;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Contact block (target of "Get in touch"). .flash is added from JS on arrival */
.about-contact[b-5zzniqp242] {
    margin-top: 28px;
    width: fit-content;
    max-width: 100%;
    padding: 4px;
    margin-left: -4px;
    border-radius: 14px;
}

    .about-contact.flash[b-5zzniqp242] {
        animation: contact-flash-b-5zzniqp242 1.6s ease-out;
    }

@keyframes contact-flash-b-5zzniqp242 {
    0%, 30% {
        box-shadow: 0 0 0 2px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 40%, transparent);
    }

    100% {
        box-shadow: 0 0 0 2px transparent, 0 0 24px transparent;
    }
}

/* Email row: address spelled out, then Copy and Send */
.about-email[b-5zzniqp242] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.about-email-addr[b-5zzniqp242] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    user-select: all;
}

    .about-email-addr svg[b-5zzniqp242] {
        color: var(--muted);
    }

.about-email-btn[b-5zzniqp242] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.15s ease, color 0.15s ease;
}

    .about-email-btn:hover[b-5zzniqp242],
    .about-email-btn:focus-visible[b-5zzniqp242] {
        transform: translateY(-2px);
        border-color: var(--accent);
    }

    .about-email-btn.copied[b-5zzniqp242] {
        color: var(--accent);
        border-color: var(--accent);
    }

    .about-email-btn.primary[b-5zzniqp242] {
        background: var(--accent);
        border-color: var(--accent);
        color: #0b0e14;
    }

.about-links[b-5zzniqp242] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.about-link[b-5zzniqp242] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.12s ease, border-color 0.15s ease;
}

    .about-link:hover[b-5zzniqp242] {
        transform: translateY(-2px);
        border-color: var(--accent);
    }

    /* Not a link (Discord invites expire): same look, no hover */
    .about-link.static[b-5zzniqp242] {
        cursor: default;
    }

        .about-link.static:hover[b-5zzniqp242] {
            transform: none;
            border-color: var(--border);
        }

    .about-link.primary[b-5zzniqp242] {
        background: var(--accent);
        border-color: var(--accent);
        color: #0b0e14;
    }

/* ===== SKILLS ===== */
.skills-grid[b-5zzniqp242] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.skill-card[b-5zzniqp242] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

    .skill-card:hover[b-5zzniqp242] {
        transform: translateY(-4px);
        border-color: var(--accent);
    }

    .skill-card h3[b-5zzniqp242] {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .skill-card p[b-5zzniqp242] {
        color: var(--muted);
        line-height: 1.6;
        font-size: 0.94rem;
    }

@media (max-width: 760px) {
    .about-grid[b-5zzniqp242] {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Phones: photo first (smaller, centered), then the text, then the facts */
    .about-side[b-5zzniqp242] {
        display: contents;
    }

    .about-photo[b-5zzniqp242] {
        order: -1;
        justify-self: center;
        max-width: 220px;
    }
}

/* ===== TOOLBOX ===== */
/* Own toolkit and Photon Quantum side by side, then the rest as tags */
.toolbox-top[b-5zzniqp242] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

.tool-feature[b-5zzniqp242] {
    background: color-mix(in srgb, var(--accent) 6%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    border-radius: var(--radius);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .tool-feature p[b-5zzniqp242] {
        color: var(--muted);
        font-size: 0.95rem;
        line-height: 1.6;
    }

.tool-feature-head[b-5zzniqp242] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

    .tool-feature-head h3[b-5zzniqp242] {
        font-size: 1.15rem;
    }

.tool-note[b-5zzniqp242] {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tool-highlights[b-5zzniqp242] {
    margin: 2px 0 0;
    padding-left: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 8px 28px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

    .tool-highlights strong[b-5zzniqp242] {
        color: var(--text);
        font-weight: 600;
    }

    .tool-highlights li[b-5zzniqp242]::marker {
        color: var(--accent);
    }

.tool-link[b-5zzniqp242] {
    align-self: flex-start;
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--accent);
    color: #0b0e14;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.12s ease;
}

    .tool-link:hover[b-5zzniqp242] {
        transform: translateY(-2px);
    }

.stack-groups[b-5zzniqp242] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 24px 32px;
}

.stack-group h3[b-5zzniqp242] {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 12px;
}

.chip-note[b-5zzniqp242] {
    margin-left: 6px;
    color: var(--muted);
    font-size: 0.78rem;
}

@media (max-width: 860px) {
    .toolbox-top[b-5zzniqp242] {
        grid-template-columns: 1fr;
    }
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline[b-5zzniqp242] {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

    /* The vertical line */
    .timeline[b-5zzniqp242]::before {
        content: "";
        position: absolute;
        left: 185px;
        top: 8px;
        bottom: 8px;
        width: 2px;
        background: var(--border);
    }

.timeline-item[b-5zzniqp242] {
    position: relative;
    display: grid;
    grid-template-columns: 185px 1fr;   /* wide enough for "Aug 2025 – Sep 2026" on one line */
    gap: 32px;
    padding: 14px 0;
}

    /* The dot on the line */
    .timeline-item[b-5zzniqp242]::before {
        content: "";
        position: absolute;
        left: 180px;
        top: 21px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--bg);
        border: 2px solid var(--accent);
    }

    .timeline-item:first-child[b-5zzniqp242]::before {
        background: var(--accent);
    }

.timeline-when[b-5zzniqp242] {
    color: var(--muted);
    font-size: 0.88rem;
    padding-top: 3px;
    text-align: right;
    padding-right: 22px;
}

.timeline-body h3[b-5zzniqp242] {
    font-size: 1.08rem;
    margin-bottom: 6px;
}

/* Project name(s): links get a soft accent underline */
.timeline-title a[b-5zzniqp242] {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
    text-underline-offset: 4px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

    .timeline-title a:hover[b-5zzniqp242],
    .timeline-title a:focus-visible[b-5zzniqp242] {
        color: var(--accent);
        text-decoration-color: var(--accent);
    }

.timeline-where[b-5zzniqp242] {
    margin-left: 0.3em;   /* Razor trims the space before the dot */
    color: var(--accent);
    font-weight: 600;
}

    .timeline-where a[b-5zzniqp242] {
        color: inherit;
        text-decoration: underline;
        text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
        text-underline-offset: 4px;
    }

        .timeline-where a:hover[b-5zzniqp242],
        .timeline-where a:focus-visible[b-5zzniqp242] {
            text-decoration-color: var(--accent);
        }

.timeline-sep[b-5zzniqp242] {
    color: var(--muted);
    font-weight: 400;
}

.timeline-body p[b-5zzniqp242] {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.94rem;
    max-width: 680px;
}

@media (max-width: 760px) {
    .timeline[b-5zzniqp242]::before {
        left: 5px;
    }

    .timeline-item[b-5zzniqp242] {
        grid-template-columns: 1fr;
        gap: 4px;
        padding-left: 28px;
    }

        .timeline-item[b-5zzniqp242]::before {
            left: 0;
            top: 18px;
        }

    .timeline-when[b-5zzniqp242] {
        text-align: left;
        padding: 0;
        font-size: 0.8rem;
    }
}
/* /Pages/Home.razor.rz.scp.css */
/* ===== HERO ===== */
.hero[b-bhd3ynvicm] {
    padding: 64px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
}

.hero-text[b-bhd3ynvicm] {
    flex: 0 1 920px;
}

/* Rounded square (a circle would cut the cat), framed like the cards */
.hero-figure[b-bhd3ynvicm] {
    flex-shrink: 0;
    margin: 0;
}

    .hero-figure figcaption[b-bhd3ynvicm] {
        margin-top: 8px;
        text-align: center;
        color: var(--muted);
        font-size: 0.85rem;
    }

/* Discord username, email, then GitHub / itch.io, under the photo.
   The email can be wider than the photo, so every line is centered on the
   photo's axis (photo, caption, contact) instead of hugging the left edge */
.hero-contact[b-bhd3ynvicm] {
    margin-top: 14px;
}

.hero-discord[b-bhd3ynvicm] {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

    .hero-discord svg[b-bhd3ynvicm] {
        color: var(--muted);
    }

    /* Email line: same look as the Discord one, but it's a link */
    .hero-email[b-bhd3ynvicm] {
        text-decoration: none;
        transition: color 0.15s ease;
    }

        .hero-email:hover[b-bhd3ynvicm],
        .hero-email:focus-visible[b-bhd3ynvicm] {
            color: var(--accent);
        }

.hero-social[b-bhd3ynvicm] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

    .hero-social a[b-bhd3ynvicm] {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--bg-elev);
        color: var(--muted);
        transition: transform 0.12s ease, border-color 0.15s ease, color 0.15s ease;
    }

        .hero-social a:hover[b-bhd3ynvicm],
        .hero-social a:focus-visible[b-bhd3ynvicm] {
            transform: translateY(-2px);
            border-color: var(--accent);
            color: var(--text);
        }

.hero-photo[b-bhd3ynvicm] {
    display: block;
    width: clamp(160px, 17vw, 240px);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 45% 30%;
    margin: 0 auto;
    border-radius: 24px;
    border: 4px solid color-mix(in srgb, var(--accent) 65%, transparent);
}

.hero-kicker[b-bhd3ynvicm] {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.hero h1[b-bhd3ynvicm] {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
}

.hero-lead[b-bhd3ynvicm] {
    margin-top: 20px;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.65;
    max-width: 720px;
}

/* Availability line under the hero text */
.hero-ongoing[b-bhd3ynvicm] {
    margin-top: 32px;
    max-width: 760px;
}

.hero-now[b-bhd3ynvicm] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

    .hero-now strong[b-bhd3ynvicm] {
        font-weight: 600;
    }

    .hero-now.open[b-bhd3ynvicm] {
        width: fit-content;
        color: #5fd38a;
        text-decoration: none;
    }

        .hero-now.open:hover strong[b-bhd3ynvicm],
        .hero-now.open:focus-visible strong[b-bhd3ynvicm] {
            text-decoration: underline;
            text-underline-offset: 4px;
        }

.now-arrow[b-bhd3ynvicm] {
    transition: transform 0.15s ease;
}

    .hero-now.open:hover .now-arrow[b-bhd3ynvicm] {
        transform: translateX(3px);
    }

    .hero-now.closed[b-bhd3ynvicm] {
        color: var(--muted);
    }

        .hero-now.closed .now-dot[b-bhd3ynvicm] {
            background: var(--muted);
            animation: none;
        }

.now-dot[b-bhd3ynvicm] {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5fd38a;
    box-shadow: 0 0 0 0 rgba(95, 211, 138, 0.6);
    animation: now-pulse-b-bhd3ynvicm 2s ease-out infinite;
}

@keyframes now-pulse-b-bhd3ynvicm {
    to { box-shadow: 0 0 0 8px rgba(95, 211, 138, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .now-dot[b-bhd3ynvicm] { animation: none; }
}

/* ===== PROJECTS ===== */
.projects-section[b-bhd3ynvicm] {
    border-top: none;
    padding-top: 32px;
}

.projects[b-bhd3ynvicm] {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Featured card: video on one side (full height), description on top
   and feedback below it on the other side */
.project-card[b-bhd3ynvicm] {
    --hue: var(--accent);
    background: var(--surface);
    /* Outline in the card's color so it stands out from the page */
    border: 4px solid color-mix(in srgb, var(--hue) 65%, transparent);
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "media info"
        "media feedback";
    transition: border-color 0.15s ease;
}

    .project-card:hover[b-bhd3ynvicm] {
        border-color: var(--hue);
    }

/* The title link covers the whole card; other links sit above it */
.project-card[b-bhd3ynvicm] {
    position: relative;
}

/* Project name in white; the card's color only on hover */
.card-link[b-bhd3ynvicm] {
    color: var(--text);
    transition: color 0.15s ease;
}

    .card-link[b-bhd3ynvicm]::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
    }

.project-card:hover .card-link[b-bhd3ynvicm] {
    color: var(--hue);
}

.project-links a[b-bhd3ynvicm],
.feedback-proof[b-bhd3ynvicm] {
    position: relative;
    z-index: 2;
}

/* Without feedback: the description takes the whole side */
.no-feedback[b-bhd3ynvicm] {
    grid-template-areas:
        "media info"
        "media info";
}

    .no-feedback .project-info[b-bhd3ynvicm] {
        justify-content: center;
    }

.project-media[b-bhd3ynvicm] {
    grid-area: media;
    background: var(--media-bg);
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .project-media[b-bhd3ynvicm]  img,
    .project-media[b-bhd3ynvicm]  video {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: contain;
        transition: transform 0.5s ease;
    }

.project-card:hover .project-media[b-bhd3ynvicm]  img,
.project-card:hover .project-media[b-bhd3ynvicm]  video,
.project-tile:hover .tile-media[b-bhd3ynvicm]  img,
.project-tile:hover .tile-media[b-bhd3ynvicm]  video {
    transform: scale(1.03);
}

.project-info[b-bhd3ynvicm] {
    grid-area: info;
    padding: 24px 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-top[b-bhd3ynvicm] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

    .project-top h3[b-bhd3ynvicm] {
        font-size: 1.4rem;
    }

.project-desc[b-bhd3ynvicm] {
    color: var(--text);
    line-height: 1.55;
    font-size: 0.95rem;
    margin: 0;
}

.project-links[b-bhd3ynvicm] {
    display: flex;
    gap: 16px;
}

    /* Links look like buttons: first one (the game) filled, the rest outlined */
    .project-links a[b-bhd3ynvicm] {
        display: inline-flex;
        align-items: center;
        padding: 9px 18px;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 600;
        white-space: nowrap;
        border: 1px solid var(--hue);
        color: var(--hue);
        transition: transform 0.12s ease, background 0.15s ease;
    }

        .project-links a:first-child[b-bhd3ynvicm] {
            background: var(--hue);
            color: #0b0e14;
        }

        .project-links a:hover[b-bhd3ynvicm] {
            transform: translateY(-2px);
        }

/* Client feedback: below the description */
.client-feedback[b-bhd3ynvicm] {
    grid-area: feedback;
    margin: 0;
    padding: 20px 28px 22px;
    background: rgba(255, 255, 255, 0.025);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.client-feedback blockquote[b-bhd3ynvicm] {
    margin: 0;
    padding-left: 18px;
    border-left: 3px solid var(--hue);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .client-feedback blockquote p[b-bhd3ynvicm] {
        margin: 0;
        color: var(--text);
        font-size: 1.02rem;
        line-height: 1.65;
    }

.client-feedback figcaption[b-bhd3ynvicm] {
    padding-left: 21px;
    display: flex;
    gap: 8px;
    align-items: baseline;
}

    .client-feedback figcaption strong[b-bhd3ynvicm] {
        color: var(--text);
    }

    .client-feedback figcaption span[b-bhd3ynvicm] {
        color: var(--muted);
        font-size: 0.85rem;
    }

.feedback-proof[b-bhd3ynvicm] {
    display: block;
    margin-left: 21px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

    .feedback-proof:hover[b-bhd3ynvicm] {
        opacity: 1;
    }

    .feedback-proof img[b-bhd3ynvicm] {
        display: block;
        width: 100%;
        height: auto;
    }

    .feedback-proof span[b-bhd3ynvicm] {
        position: absolute;
        right: 8px;
        bottom: 6px;
        font-size: 0.75rem;
        padding: 2px 8px;
        border-radius: 6px;
        background: rgba(11, 14, 20, 0.85);
        color: var(--accent);
    }

/* Featured feedback on the home page: one strong sentence */
.client-feedback .feedback-highlight[b-bhd3ynvicm] {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

.feedback-more[b-bhd3ynvicm] {
    position: relative;
    z-index: 2;
    margin-left: 21px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    align-self: flex-start;
    transition: color 0.15s ease;
}

    .feedback-more:hover[b-bhd3ynvicm] {
        color: var(--text);
    }

/* Personal project: takes the feedback's place */
.personal-aside[b-bhd3ynvicm] {
    grid-area: feedback;
    padding: 20px 28px 24px;
    background: rgba(255, 255, 255, 0.025);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.personal-badge[b-bhd3ynvicm] {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--hue);
    color: var(--hue);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.personal-note[b-bhd3ynvicm] {
    color: var(--muted);
    font-size: 0.95rem;
}

.personal-highlights[b-bhd3ynvicm] {
    margin: 4px 0 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text);
    font-size: 1rem;
}

    .personal-highlights li[b-bhd3ynvicm]::marker {
        color: var(--hue);
    }

/* ===== COMPACT GRID ===== */
/* Second section title, below the released projects */
.projects + .prototypes-head[b-bhd3ynvicm] {
    margin-top: 72px;
}

/* Prototypes: one row of small cards that scrolls sideways (arrows in the title) */
.project-grid[b-bhd3ynvicm] {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 14px;   /* room for the hover lift and the scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

    .project-grid > .project-tile[b-bhd3ynvicm] {
        flex: 0 0 clamp(280px, 30%, 380px);
        scroll-snap-align: start;
    }

.proto-nav[b-bhd3ynvicm] {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-self: center;
}

    .proto-nav button[b-bhd3ynvicm] {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--bg-elev);
        color: var(--text);
        font-size: 1.1rem;
        cursor: pointer;
        transition: border-color 0.15s ease, color 0.15s ease;
    }

        .proto-nav button:hover[b-bhd3ynvicm],
        .proto-nav button:focus-visible[b-bhd3ynvicm] {
            border-color: var(--accent);
            color: var(--accent);
        }

.project-tile[b-bhd3ynvicm] {
    --hue: var(--accent);
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 4px solid color-mix(in srgb, var(--hue) 65%, transparent);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

    .project-tile:hover[b-bhd3ynvicm] {
        border-color: var(--hue);
        transform: translateY(-3px);
    }

    .project-tile:hover .card-link[b-bhd3ynvicm] {
        color: var(--hue);
    }

.project-tile:nth-child(4n+2)[b-bhd3ynvicm] { --hue: #b48cff; }
.project-tile:nth-child(4n+3)[b-bhd3ynvicm] { --hue: #4fd1c5; }
.project-tile:nth-child(4n+4)[b-bhd3ynvicm] { --hue: #f2b56b; }

.tile-media[b-bhd3ynvicm] {
    background: var(--media-bg);
    overflow: hidden;
}

    .tile-media[b-bhd3ynvicm]  img,
    .tile-media[b-bhd3ynvicm]  video {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: contain;
    }

.tile-body[b-bhd3ynvicm] {
    flex: 1;
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .tile-body h3[b-bhd3ynvicm] {
        font-size: 1.2rem;
        margin: 0;
    }

.tile-desc[b-bhd3ynvicm] {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tile-quote[b-bhd3ynvicm] {
    margin: 4px 0 0;
    padding: 10px 0 10px 14px;
    border-left: 3px solid var(--hue);
}

    .tile-quote p[b-bhd3ynvicm] {
        margin: 0;
        color: var(--text);
        font-size: 0.98rem;
        font-weight: 500;
        line-height: 1.5;
    }

    .tile-quote footer[b-bhd3ynvicm] {
        margin-top: 6px;
        color: var(--muted);
        font-size: 0.8rem;
    }

.tile-link[b-bhd3ynvicm] {
    position: relative;
    z-index: 2;
    margin-top: auto;
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--hue);
    color: #0b0e14;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.12s ease;
}

    .tile-link:hover[b-bhd3ynvicm] {
        transform: translateY(-2px);
    }

/* Each card gets its own hue, cycling through four */
.project-card:nth-child(4n+2)[b-bhd3ynvicm] { --hue: #b48cff; }
.project-card:nth-child(4n+3)[b-bhd3ynvicm] { --hue: #4fd1c5; }
.project-card:nth-child(4n+4)[b-bhd3ynvicm] { --hue: #f2b56b; }

/* Every other card mirrors the columns */
.project-card:nth-child(even)[b-bhd3ynvicm] {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-areas:
        "info     media"
        "feedback media";
}

.no-feedback:nth-child(even)[b-bhd3ynvicm] {
    grid-template-areas:
        "info media"
        "info media";
}

/* Divider between the video and the text, same color and width as the outline */
.project-media[b-bhd3ynvicm] {
    border-right: 4px solid color-mix(in srgb, var(--hue) 65%, transparent);
}

.project-card:nth-child(even) .project-media[b-bhd3ynvicm] {
    border-right: none;
    border-left: 4px solid color-mix(in srgb, var(--hue) 65%, transparent);
}

.tile-media[b-bhd3ynvicm] {
    border-bottom: 4px solid color-mix(in srgb, var(--hue) 65%, transparent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
    .project-card[b-bhd3ynvicm],
    .project-card:nth-child(even)[b-bhd3ynvicm],
    .no-feedback[b-bhd3ynvicm],
    .no-feedback:nth-child(even)[b-bhd3ynvicm] {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: "media" "info" "feedback";
    }

    /* Stacked: the divider goes below the video */
    .project-media[b-bhd3ynvicm],
    .project-card:nth-child(even) .project-media[b-bhd3ynvicm] {
        border-left: none;
        border-right: none;
        border-bottom: 4px solid color-mix(in srgb, var(--hue) 65%, transparent);
    }
}

@media (max-width: 760px) {
    /* Phones: compact intro so the projects show up sooner */
    .hero[b-bhd3ynvicm] {
        padding: 24px 0 0;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 14px;
    }

    /* Stacked, so the 920px basis would become height */
    .hero-text[b-bhd3ynvicm] {
        flex: none;
    }

    .hero-photo[b-bhd3ynvicm] {
        width: 72px;
        border-radius: 14px;
        border-width: 3px;
    }

    /* Too small for a caption next to a 72px photo */
    .hero-figure figcaption[b-bhd3ynvicm] {
        display: none;
    }

    /* Photo and links side by side */
    .hero-figure[b-bhd3ynvicm] {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .hero-photo[b-bhd3ynvicm] {
        margin: 0;
    }

    .hero-contact[b-bhd3ynvicm] {
        margin: 0;
    }

    /* Beside the photo: back to left-aligned */
    .hero-discord[b-bhd3ynvicm] {
        margin-bottom: 8px;
        justify-content: flex-start;
    }

    .hero-social[b-bhd3ynvicm] {
        gap: 8px;
        justify-content: flex-start;
    }

        .hero-social a[b-bhd3ynvicm] {
            width: 36px;
            height: 36px;
        }

    .hero-kicker[b-bhd3ynvicm] {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .hero h1[b-bhd3ynvicm] {
        font-size: 1.6rem;
    }

    .hero-lead[b-bhd3ynvicm] {
        margin-top: 12px;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .hero-ongoing[b-bhd3ynvicm] {
        margin-top: 20px;
    }

    .hero-now[b-bhd3ynvicm] {
        font-size: 0.88rem;
        margin-bottom: 8px;
    }

    .projects-section[b-bhd3ynvicm] {
        padding-top: 28px;
    }

    .projects-section .section-head[b-bhd3ynvicm] {
        margin-bottom: 16px;
    }

    .projects + .prototypes-head[b-bhd3ynvicm] {
        margin-top: 48px;
    }

    .projects-section .section-lead[b-bhd3ynvicm] {
        margin: -8px 0 20px;
    }

    .personal-aside[b-bhd3ynvicm] {
        padding: 18px 16px 22px;
    }

    .project-info[b-bhd3ynvicm] {
        padding: 18px 16px;
    }

    .client-feedback[b-bhd3ynvicm] {
        padding: 22px 16px;
    }

        .client-feedback blockquote p[b-bhd3ynvicm] {
            font-size: 0.95rem;
        }
}

/* Phones: prototypes become a compact list (small video on the left, name and
   a short line on the right); the whole row opens the project page */
@media (max-width: 760px) {
    /* Back to a vertical list */
    .project-grid[b-bhd3ynvicm] {
        display: grid;
        gap: 12px;
        overflow: visible;
        padding: 0;
    }

        .project-grid > .project-tile[b-bhd3ynvicm] {
            flex: none;
        }

    .proto-nav[b-bhd3ynvicm] {
        display: none;
    }

    .project-tile[b-bhd3ynvicm] {
        flex-direction: row;
        border-width: 2px;
    }

        .project-tile:hover[b-bhd3ynvicm] {
            transform: none;
        }

    /* The thumbnail fills the row height without stretching it (tall videos) */
    .tile-media[b-bhd3ynvicm] {
        flex: 0 0 112px;
        position: relative;
        border-bottom: none;
        border-right: 2px solid color-mix(in srgb, var(--hue) 65%, transparent);
    }

        .tile-media[b-bhd3ynvicm]  img,
        .tile-media[b-bhd3ynvicm]  video {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            aspect-ratio: auto;
            object-fit: cover;
        }

    .tile-body[b-bhd3ynvicm] {
        padding: 12px 14px;
        gap: 6px;
        min-width: 0;
    }

        .tile-body h3[b-bhd3ynvicm] {
            font-size: 1rem;
        }

            .tile-body h3 .status-badge[b-bhd3ynvicm] {
                margin-left: 6px;
                font-size: 0.62rem;
                padding: 2px 7px;
            }

    .tile-desc[b-bhd3ynvicm] {
        font-size: 0.85rem;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    .project-tile .chips[b-bhd3ynvicm],
    .tile-quote[b-bhd3ynvicm],
    .tile-link[b-bhd3ynvicm] {
        display: none;
    }
}
/* /Pages/NotFound.razor.rz.scp.css */
.not-found[b-h3uli9ayg2] {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 20px;
}

.nf-code[b-h3uli9ayg2] {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(5rem, 16vw, 9rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 70%, transparent);
}

.not-found h1[b-h3uli9ayg2] {
    margin: 18px 0 0;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.nf-text[b-h3uli9ayg2] {
    margin: 12px 0 0;
    max-width: 42ch;
    color: var(--muted);
}

.nf-home[b-h3uli9ayg2] {
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    background: var(--accent);
    color: #0b0e14;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.12s ease;
}

    .nf-home:hover[b-h3uli9ayg2] {
        transform: translateY(-2px);
    }
/* /Pages/ProjectPage.razor.rz.scp.css */
/* One content width for the whole page */
.detail[b-ysbysweqzs] {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 0 80px;
}

.back-link[b-ysbysweqzs] {
    display: inline-block;
    color: var(--muted);
    font-size: 0.9rem;
}

    .back-link:hover[b-ysbysweqzs] {
        color: var(--hue);
    }

.detail-title[b-ysbysweqzs] {
    text-align: center;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.15;
    margin: 12px 0 32px;
}

/* Media + quick facts */
.detail-hero[b-ysbysweqzs] {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.detail-media[b-ysbysweqzs] {
    background: var(--media-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
}

    .detail-media img[b-ysbysweqzs],
    .detail-media[b-ysbysweqzs]  video {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: contain;
    }

.detail-facts[b-ysbysweqzs] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .detail-facts h2[b-ysbysweqzs] {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--hue);
        margin: 0 0 6px;
    }

    .detail-facts p[b-ysbysweqzs] {
        margin: 0;
        color: var(--text);
        font-size: 0.95rem;
        line-height: 1.6;
    }

/* Same buttons as the home cards: first one filled, the rest outlined */
.detail-links[b-ysbysweqzs] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .detail-links a[b-ysbysweqzs] {
        display: inline-flex;
        align-items: center;
        padding: 9px 18px;
        border-radius: 10px;
        border: 1px solid var(--hue);
        color: var(--hue);
        font-size: 1rem;
        font-weight: 600;
        transition: transform 0.12s ease;
    }

        .detail-links a:first-child[b-ysbysweqzs] {
            background: var(--hue);
            color: #0b0e14;
        }

        .detail-links a:hover[b-ysbysweqzs] {
            transform: translateY(-2px);
        }

/* Bottom of the panel: buttons on the right, tags below them */
.detail-facts-footer[b-ysbysweqzs] {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .detail-facts-footer .detail-links[b-ysbysweqzs] {
        order: -1;
        justify-content: flex-end;
    }

/* Sections below */
.detail-section[b-ysbysweqzs] {
    margin-top: 64px;
}

.rule[b-ysbysweqzs] {
    width: 64px;
    margin: 0 auto 18px;
    border: none;
    border-top: 2px solid var(--hue);
    opacity: 0.6;
}

.section-title[b-ysbysweqzs] {
    text-align: center;
    font-size: 1.6rem;
    margin: 0 0 24px;
}

.detail-text[b-ysbysweqzs] {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .detail-text h3[b-ysbysweqzs] {
        margin: 14px 0 -6px;
        font-size: 1.15rem;
        color: var(--text);
    }

    .detail-text ul[b-ysbysweqzs] {
        margin: 0;
        padding-left: 22px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        color: var(--muted);
        font-size: 1.02rem;
        line-height: 1.65;
    }

        .detail-text li[b-ysbysweqzs]::marker {
            color: var(--hue);
        }

    .detail-text p[b-ysbysweqzs] {
        margin: 0;
        color: var(--muted);
        font-size: 1.05rem;
        line-height: 1.75;
    }

/* Client feedback quote */
.detail-quote[b-ysbysweqzs] {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 36px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--hue) 14%, transparent), var(--surface) 70%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

    .detail-quote[b-ysbysweqzs]::before {
        content: "\201C";
        position: absolute;
        top: -2px;
        right: 26px;
        font-size: 7rem;
        line-height: 1;
        font-family: Georgia, serif;
        color: var(--hue);
        opacity: 0.18;
        pointer-events: none;
    }

    .detail-quote blockquote[b-ysbysweqzs] {
        margin: 0;
        padding-left: 18px;
        border-left: 3px solid var(--hue);
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

        .detail-quote blockquote p[b-ysbysweqzs] {
            margin: 0;
            color: var(--text);
            font-size: 1.02rem;
            line-height: 1.7;
        }

    .detail-quote figcaption[b-ysbysweqzs] {
        padding-left: 21px;
        display: flex;
        gap: 8px;
        align-items: baseline;
    }

        .detail-quote figcaption strong[b-ysbysweqzs] {
            color: var(--text);
        }

        .detail-quote figcaption span[b-ysbysweqzs] {
            color: var(--muted);
            font-size: 0.85rem;
        }

.feedback-proof[b-ysbysweqzs] {
    display: block;
    margin-left: 21px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

    .feedback-proof:hover[b-ysbysweqzs] {
        opacity: 1;
    }

    .feedback-proof img[b-ysbysweqzs] {
        display: block;
        width: 100%;
        height: auto;
    }

    .feedback-proof span[b-ysbysweqzs] {
        position: absolute;
        right: 8px;
        bottom: 6px;
        font-size: 0.75rem;
        padding: 2px 8px;
        border-radius: 6px;
        background: rgba(11, 14, 20, 0.85);
        color: var(--hue);
    }

.detail-youtube[b-ysbysweqzs] {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--media-bg);
}

    .detail-youtube iframe[b-ysbysweqzs] {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }

.detail-missing[b-ysbysweqzs] {
    padding: 80px 0;
    text-align: center;
}

@media (max-width: 900px) {
    .detail-hero[b-ysbysweqzs] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .detail-section[b-ysbysweqzs] {
        margin-top: 48px;
    }

    .detail-facts[b-ysbysweqzs],
    .detail-quote[b-ysbysweqzs] {
        padding: 22px 18px;
    }
}

/* Status tag under the title */
.detail-status[b-ysbysweqzs] {
    text-align: center;
    margin: -12px 0 28px;
}

    .detail-status .status-badge[b-ysbysweqzs] {
        margin-left: 0;
        font-size: 0.75rem;
    }

/* Index of sections, under the Overview title */
.detail-toc[b-ysbysweqzs] {
    max-width: 800px;
    margin: 0 auto 32px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
}

    .detail-toc a[b-ysbysweqzs] {
        color: var(--text);
        font-weight: 600;
        text-decoration: underline;
        text-decoration-color: color-mix(in srgb, var(--hue) 60%, transparent);
        text-underline-offset: 4px;
    }

        .detail-toc a:hover[b-ysbysweqzs] {
            color: var(--hue);
        }

/* Sections jump here; keep the title clear of the sticky top bar */
.detail-text h3[id][b-ysbysweqzs] {
    scroll-margin-top: 90px;
}

/* Images and videos inside the text; two or more sit side by side */
.detail-figures[b-ysbysweqzs] {
    display: grid;
    gap: 16px;
    margin: 6px 0;
}

    .detail-figures.multi[b-ysbysweqzs] {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
        align-items: center;
    }

    .detail-figures figure[b-ysbysweqzs] {
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* A single image keeps its own shape (tall clips don't get wide side bars) */
    .detail-figures:not(.multi) img[b-ysbysweqzs],
    .detail-figures:not(.multi)[b-ysbysweqzs]  video {
        width: auto;
        max-width: 100%;
    }

    .detail-figures img[b-ysbysweqzs],
    .detail-figures[b-ysbysweqzs]  video {
        display: block;
        width: 100%;
        max-height: 460px;
        object-fit: contain;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--media-bg);
    }

    .detail-figures figcaption[b-ysbysweqzs] {
        margin-top: 8px;
        text-align: center;
        color: var(--muted);
        font-size: 0.88rem;
        font-weight: 600;
    }

/* Code blocks */
.detail-code[b-ysbysweqzs] {
    margin: 6px 0;
    padding: 18px 20px;
    overflow-x: auto;
    background: #0a0d13;
    border: 1px solid var(--border);
    border-left: 3px solid var(--hue);
    border-radius: 10px;
    font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #d5dcea;
    tab-size: 4;
}
